package com.tancire.net.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 会员钱包对象 purse_info
 *
 * @author chenchao
 * @date 2023-11-19
 */
public class PurseInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String userName;

    /**
     * 账号
     */
    @Excel(name = "账号")
    private Integer account;

    /**
     * 现金余额
     */
    @Excel(name = "现金余额")
    private BigDecimal cashAmount;

    /**
     * 活动积分/金币/xx币
     */
    @Excel(name = "活动积分/金币/xx币")
    private BigDecimal activePoints;

    /**
     * 钱包状态 0 正常 1 冻结 2 注销
     */
    @Excel(name = "钱包状态 0 正常 1 冻结 2 注销")
    private Integer purseStatus;

    /**
     * 冻结原因
     */
    @Excel(name = "冻结原因")
    private String frozenReason;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setAccount(Integer account) {
        this.account = account;
    }

    public Integer getAccount() {
        return account;
    }

    public void setCashAmount(BigDecimal cashAmount) {
        this.cashAmount = cashAmount;
    }

    public BigDecimal getCashAmount() {
        return cashAmount;
    }

    public void setActivePoints(BigDecimal activePoints) {
        this.activePoints = activePoints;
    }

    public BigDecimal getActivePoints() {
        return activePoints;
    }

    public void setPurseStatus(Integer purseStatus) {
        this.purseStatus = purseStatus;
    }

    public Integer getPurseStatus() {
        return purseStatus;
    }

    public void setFrozenReason(String frozenReason) {
        this.frozenReason = frozenReason;
    }

    public String getFrozenReason() {
        return frozenReason;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("account", getAccount())
                .append("cashAmount", getCashAmount())
                .append("activePoints", getActivePoints())
                .append("purseStatus", getPurseStatus())
                .append("frozenReason", getFrozenReason())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
